import ds.MyStack;

public class UndoStack {
    private MyStack<int[]> stack = new MyStack<>();

    public void push(int row, int col) {
        stack.push(new int[]{row, col});
    }

    public int[] pop() {
        return stack.pop();
    }

    public boolean isEmpty() {
        return stack.isEmpty();
    }

    public MyStack<int[]> getStack() {
        return stack;
    }
} 